<template>
    <div class="phone">
        <div v-html="$store.state.detail"></div>
    </div>
</template>
<script>
import Symptoms from "../components/longbi/Symptoms";
import Project from "../components/longbi/Project";
import Recommend from "../components/longbi/Recommend";
import Interest from "../components/longbi/Interest";
import Case from "../components/longbi/Case";
import Doctor from "../components/longbi/Doctor";
import Attention from "../components/longbi/Attention";
import Organization from "../components/longbi/Organization";
export default {
  name: "detail",
  components: {
    Symptoms,
    Project,
    Recommend,
    Interest,
    Case,
    Doctor,
    Attention,
    Organization
  },
  data() {
    return {
      content: ""
    };
  },
  created() {
    // alert(this.$route.params.code);
    var that = this;
    this.$http({
      url: "web/loadPage/getLoadPage",
      method: "post",
      data: {
        id: this.$route.params.code
      },
      withCredentials: true
    })
      .then(res1 => {
        if (res1.data.success === false) {
          alert(res1.data.error);
        } else {
          this.$store.commit("getDetail", res1.data.data.content);
        }
      })
      .catch(err => {
        console.log(err);
      });
  }
};
</script>

<style lang="scss" scoped>
</style>
